home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-04-06 | 5.0 KB | 117 lines | [TEXT/MPS ] |
- Indent # GNU Indent formats C code
- Indent [option…] [file…] ≥ errors
- Indent [option…] file [-o output | -st > output] ≥ errors
- -bad #
- --blank-lines-after-declarations # Force blank lines after the declarations
- -bap #
- --blank-lines-after-procedures # Force blank lines after procedure bodies
- -bbb #
- --blank-lines-after-block-comments # Force blank lines after block comments
- -bc #
- --blank-lines-after-commas # Force newline after comma in declaration
- -bl #
- --braces-after-if-line # Put braces on line after if, etc
- -bli<n> #
- --brace-indent<n> # Indent braces <n> spaces
- -br #
- --braces-on-if-line # Put braces on line with if, etc
- -c<n> #
- --comment-indentation<n> # Put comments to the right of code in column <n>
- -cd<n> #
- --declaration-comment-column<n> # Put comments to the right of the declarations in column <n>
- -cdb #
- --comment-delimiters-on-blank-lines # Put comment delimiters on blank lines
- -ce #
- --cuddle-else # Cuddle else and preceding }
- -ci<n> #
- --continuation-indentation<n> # Continuation indent of <n> spaces
- -cli<n> #
- --case-indentation<n> # Case label indent of <n> spaces
- -cp<n> #
- --else-endif-column<n> # Put comments to the right of #else and #endif statements in column <n>
- -cs #
- --space-after-cast # Put a space after a cast operator
- -bs #
- --blank-before-sizeof # Put a space between sizeof and its argument
- -d<n> #
- --line-comments-indentation<n> # Set indentation of comments not to the right of code to <n> spaces
- -di<n> #
- --declaration-indentation<n> # Put variables in column <n>
- -fc1 #
- --format-first-column-comments # Format comments in the first column
- -fca #
- --format-all-comments # Do not disable all formatting of comments
- -gnu #
- --gnu-style # Use GNU coding style. This is the default
- -i<n> #
- --indent-level<n> # Set indentation level to <n> spaces
- -ip<n> #
- --parameter-indentation<n> # Indent parameter types in old-style function definitions by <n> spaces
- -kr #
- --k-and-r-style # Use Kernighan & Ritchie coding style
- -l<n> #
- --line-length<n> # Set maximum line length to <n>
- -lp #
- --continue-at-parentheses # Line up continued lines at parentheses
- -lps #
- --leave-preprocessor-space # Leave space between # and preprocessor directive.
- -nbad #
- --no-blank-lines-after-declarations # Do not force blank lines after declarations
- -nbap #
- --no-blank-lines-after-procedures # Do not force blank lines after procedure bodies
- -nbbb #
- --no-blank-lines-after-block-comments # Do not force blank-lines after block comments
- -nbc #
- --no-blank-lines-after-commas # Do not force newlines after commas in declarations
- -ncdb #
- --no-comment-delimiters-on-blank-lines # Do not put comment delimiters on blank lines
- -nce #
- --dont-cuddle-else # Do not cuddle } and else
- -ncs #
- --no-space-after-casts # Do not put a space after cast operators
- -nfc1 #
- --dont-format-first-column-comments # Do not format comments in the first column as normal
- -nfca #
- --dont-format-comments # Do not format any comments
- -nip #
- --no-parameter-indentation # Zero width indentation for parameters
- -nlp #
- --dont-line-up-parentheses # Do not line up parentheses
- -npcs #
- --no-space-after-function-call-names # Do not put space after the function in function calls
- -npsl #
- --dont-break-procedure-type # Put the type of a procedure on the same line as its name
- -nsc #
- --dont-star-comments # Do not put the * character at the left of comments
- -nsob #
- --leave-optional-blank-lines # Do not swallow optional blank lines
- -nss #
- --dont-space-special-semicolon # Do not force a space before the semicolon after certain statements. Disables -ss
- -nv #
- --no-verbosity # Disable verbose mode.
- -orig #
- --original # Use the original Berkeley coding style
- -npro #
- --ignore-profile # Do not read Indent Prefs file
- -pcs #
- --space-after-procedure-calls # Insert a space between the name of the procedure being called and the (
- -psl #
- --procnames-start-lines # Put the type of a procedure on the line before its name
- -sc #
- --start-left-side-of-comments # Put the * character at the left of comments
- -sob #
- --swallow-optional-blank-lines # Swallow optional blank lines
- -ss #
- --space-special-semicolon # On one-line for and while statments, force a blank before the semicolon
- -st #
- --standard-output # Write to standard output
- -T # Tell Indent the name of typenames
- -troff # Format the program for printing with troff. Use of this option is not suggested.
- -ts<n> #
- --tab-size<n> # Set tab size to <n> spaces
- -v #
- --verbose # Enable verbose mode
- -version # Output the version number of Indent
-
- _
-